package com.newcoin.xgb.service;

import com.newcoin.xgb.dto.QueryParameterDto;
import com.newcoin.xgb.dto.SendSmsCodeDto;
import com.newcoin.xgb.dto.UpdateAppDto;
import com.newcoin.xgb.entity.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


public interface CommonService {

    Result sendSmsCode(SendSmsCodeDto sendSmsCodeDto) throws Exception;


    Result uploadFile(MultipartFile file, String type) throws Exception;


    /**
     * 更新
     *
     * @param version
     * @return
     * @throws Exception
     */
    Map<String, Object> isUpdate(String version) throws Exception;

    Result<List<XgbIndexCarousel>> getCarousel() throws Exception;

    Result<List<XgbArea>> getArea() throws Exception;

    Result<List<XgbIndexAnn>> getAnnouncement() throws Exception;

    Result<XgbIndexAnn> getAnnouncementBuyId(QueryParameterDto queryParameterDto) throws Exception;

    Result<XgbCustomerService> getCustomerService() throws Exception;
}